package xyz.xxpc.springcloud.consumer.hystrix;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication(scanBasePackages = {
        "xyz.xxpc.springcloud.consumer.hystrix",
        "xyz.xxpc.springcloud.service.api"
})
@EnableEurekaClient
@EnableHystrix // 启用Hystrix
@EnableFeignClients(basePackages = "xyz.xxpc.springcloud.service.api") // 一旦采用feign客户端的方式 则必须启用且配置正确接口包
public class ConsumerHystrixApplication {
    public static void main(String[] args) {
        SpringApplication.run(ConsumerHystrixApplication.class, args);
    }
}
